package main

import (
	"gitee.com/swsk33/shard-download-demo/model"
)

func main() {
	// 创建任务
	task := model.NewParallelGetTask(
		"https://github.com/jgraph/drawio-desktop/releases/download/v24.7.17/draw.io-24.7.17-windows-installer.exe",
		"C:\\Users\\swsk33\\Downloads\\draw.io.exe",
		64,
		"C:\\Users\\swsk33\\Downloads\\temp",
	)
	// 执行任务
	_ = task.Run()
}